#!/bin/bash
# SPDX-License-Identifier: MulanPSL-2.0+
# Copyright (c) 2020 Huawei Technologies Co., Ltd. All rights reserved.

pkgs=(
	vim
	git
	gcc
	gcc-c++
	make
	ruby
	rubygems
	ruby-devel
	bridge-utils
	qemu
	lvm2
	docker-engine
	dmidecode
	redis
	wget
	busybox
	iproute
	hostname
	libvirt
	curl
	sudo
)

yum install -y --skip-broken "${pkgs[@]}"

wget http://rpmfind.net/linux/openmandriva/cooker/repository/$(arch)/main/release/lib64lockfile1-1.16-1-omv4002.$(arch).rpm
wget http://rpmfind.net/linux/openmandriva/cooker/repository/$(arch)/main/release/lockfile-progs-0.1.18-5-omv4002.$(arch).rpm

rpm -i --force lib64lockfile1-1.16-1-omv4002.$(arch).rpm lockfile-progs-0.1.18-5-omv4002.$(arch).rpm
rm -rf *.rpm
